package 哪来的AC20105;

import java.util.HashMap;
import java.util.Map;

public class Main {
    public static void main(String[] args) {
        Map<Character,Integer> bihuaMap=new HashMap<>();
        bihuaMap.put('蓝',13);
        bihuaMap.put('桥',10);
        bihuaMap.put('杯',8);
        String string="蓝桥杯";
        int total=string.chars()
                .map(c->bihuaMap.getOrDefault((char)c,0))
                .sum();
        System.out.println(total);
    }
}
